package com.platform.modules.custmoer.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户
 *
 * @author klwu
 */
@Data
@TableName("customer")
public class CustomerEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private String id;

    private String custName;

    private String address;
    private String province;
    private String city;
    private String town;

    private String phone;

    private String status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 所属业务员
     */
    private String staffId;

    /**
     * 是否属于公海，1是，0否
     */
    private String type;

    /**
     * 描述客户要求
     */
    private String remark;

    private String lat;

    // 经度
    private String lgt;

    @TableField(exist = false)
    private String staffName;
    @TableField(exist = false)
    private String createTimeStr;
    @TableField(exist = false)
    private String statusStr;
}
